package cate.common.table.activity.rankactivity.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;

public class RankActivityBaseRow extends ERow {
    public int funcId;

    public int group;

    public int rankId;

    public int event;

    public int param;

    public int mailId;

    public String tag;

    public int condition;

    public String backRewardStr;

    public double backScale;

    public int backMailId;

    public boolean readHistory;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("活动ID");
        this.funcId = xrw.getInteger("功能ID");
        this.group = xrw.getInteger("活动分组");
        this.mailId = xrw.getInteger("邮件",0);
        this.rankId = xrw.getInteger("排行榜ID");
        this.event = xrw.getInteger("排行榜事件", 0);
        this.param = xrw.getInteger("排行榜参数", 0);
        this.condition = xrw.getInteger("排行榜参与条件", 0);
        this.tag = xrw.getString("tag");
        this.backRewardStr = xrw.getString("返利道具");
        this.backScale = xrw.getDouble("返利比例", 0d);
        this.backMailId = xrw.getInteger("返利邮件", 0);
        this.readHistory = xrw.getBoolean("是否历史事件", false);
    }
}
